package com.tamir.template.util;

import org.apache.commons.beanutils.MethodUtils;

/**
 * @author : tanggh
 * @description :〈描述〉
 * @date : 2016/11/3
 */
public class ClassUtil
{
    public static final Object invokeMethod(Object instance, String MethodName, Object Argv) throws Exception {
        return MethodUtils.invokeMethod(instance, MethodName, Argv);
    }

    public static final Object invokeMethod(Object instance, String MethodName, Object[] Argv) throws Exception {
        return MethodUtils.invokeMethod(instance, MethodName, Argv);
    }

    public static final Object invokeMethod(Object instance, String MethodName, Object[] Argv, Class[] parameterTypes) throws Exception {
        return MethodUtils.invokeMethod(instance, MethodName, Argv, parameterTypes);
    }

}
